package com.linq.cool.sdk.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

import java.util.regex.Pattern;

/**
 * @author yqlin
 * @date 2021/8/4 13:17
 * @description
 */
@AllArgsConstructor
@Getter
public enum MyQQRobotCommandEnum {
    /**
     * 全部指令
     */
    ALL_COMMAND(Pattern.compile("(^dd\\(.*\\)$)|(^dd\\(.*\\)\\[@[1-9][0-9]{4,14}]$)|(\\[@[1-9][0-9]{4,14}])")),
    /**
     * [@2719190494]
     */
    GROUP_AT_MEMBER_COMMAND(Pattern.compile("\\[@[1-9][0-9]{4,14}]")),
    /**
     * dd(文件)
     */
    FRIEND_DOWNLOAD_FILE_COMMAND(Pattern.compile("^dd\\(.*\\)$")),
    /**
     * dd(文件)[@2719190494]
     */
    GROUP_DOWNLOAD_FILE_COMMAND(Pattern.compile("^dd\\(.*\\)\\[@[1-9][0-9]{4,14}]$")),
    /**
     * dd(文件) 或者 dd(文件)[@2719190494]
     */
    DOWNLOAD_FILE_COMMAND(Pattern.compile("(^dd\\(.*\\)$)|(^dd\\(.*\\)\\[@[1-9][0-9]{4,14}]$)"));
    private final Pattern pattern;
}
